package com.kevin.springboot.prototype.demo3;

import java.util.Date;

public class BiliBili {

    public static void main(String[] args) throws CloneNotSupportedException {

        Date date = new Date();
        System.out.println(date);
        Video v1 = new Video("kevin", date);
        Video v2 = (Video) v1.clone();

        System.out.println("v1==========>"+v1);
        System.out.println("v2==========>"+v2);

        // System.out.println("v1 hashcode==========>"+v1.hashCode());
        // System.out.println("v2 hashcode==========>"+v2.hashCode());
        date.setTime(11111111111L);
        System.out.println(date);
        System.out.println("=======================after clone========================");

        System.out.println("v1==========>"+v1);
        System.out.println("v2==========>"+v2);

    }
}
